package com.study.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.study.model.system.SysRole;
import com.study.model.vo.AssginRoleVo;
import com.study.model.vo.SysRoleQueryVo;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface SysRoleService extends IService<SysRole> {
    IPage<SysRole> selectPage(Page<SysRole> page, @Param("vo") SysRoleQueryVo roleQueryVo);
    //根据用户id获取用户的角色
    Map<String, Object> getRolesByUserId(String userId);
    //给用户分配角色
    void doAssign(AssginRoleVo assginRoleVo);
}
